package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Question;
import cn.wolfcode.trip.base.domain.QuestionComment;
import cn.wolfcode.trip.base.domain.QuestionCommentReply;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.QuestionCommentQueryObject;
import com.github.pagehelper.PageInfo;

public interface IQuestionService {
    PageInfo query(QueryObject qo);

    void save(Question question);

    Question getById(Long id);

    PageInfo getCommentsByQuestionId(QuestionCommentQueryObject qo);

    void save(QuestionComment questionComment);

    void updateNum(Question question);

    void saveReply(QuestionCommentReply commentReply);
}

